package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// 礼物榜活动

type DanceDonationRankings struct {
	Id        int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	StartTime int64          `json:"startTime" gorm:"column:start_time;type:bigint;default:0;not null;comment:开始时间"`
	EndTime   int64          `json:"endTime" gorm:"column:end_time;type:bigint;default:0;not null;comment:结束时间"`
	Name      string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment:活动名称"`
	Described string         `json:"described" gorm:"column:described;type:text;not null;comment:活动描述"`
	Details   string         `json:"details" gorm:"column:details;type:text;not null;comment:活动详细信息"`
	GiftInfo  string         `json:"giftInfo" gorm:"column:gift_info;type:text;not null;comment:礼物信息"`
	Issue     int64          `json:"issue" gorm:"column:issue;type:bigint;default:0;not null;comment:是否发放"` // 奖励是否发放
	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
